import service from '@/utils/request'

export const createOdsDbSchema = (data) => {
  return service({
    url: '/odsDbSchema/createOdsDbSchema',
    method: 'post',
    data
  })
}

export const deleteOdsDbSchema = (data) => {
  return service({
    url: '/odsDbSchema/deleteOdsDbSchema',
    method: 'delete',
    data
  })
}

export const deleteOdsDbSchemaByIds = (data) => {
  return service({
    url: '/odsDbSchema/deleteOdsDbSchemaByIds',
    method: 'delete',
    data
  })
}

export const updateOdsDbSchema = (data) => {
  return service({
    url: '/odsDbSchema/updateOdsDbSchema',
    method: 'put',
    data
  })
}

export const findOdsDbSchema = (params) => {
  return service({
    url: '/odsDbSchema/findOdsDbSchema',
    method: 'get',
    params
  })
}

export const getOdsDbSchemaList = (params) => {
  return service({
    url: '/odsDbSchema/getOdsDbSchemaList',
    method: 'get',
    params
  })
}

export const getAllOdsDbSchemas = (params) => {
  return service({
    url: '/odsDbSchema/getAllOdsDbSchemas',
    method: 'get',
    params
  })
}